package com.mpsc.fbpm.consumer.response;

import lombok.Data;

import java.io.Serializable;

@Data
public class BaseResponse implements Serializable {

    //响应结果(100200为正确，其他值均为异常)
    private int code;
    //异常信息
    private String msg;

    //数据信息
    private Object data;

    public BaseResponse() {
    }

    public BaseResponse(int code) {
        this.code = code;
    }

    public BaseResponse(int code, Object data) {
        this.code = code;
        this.data = data;
    }

    public BaseResponse(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

}

